<script setup>
const imgUrl = [
  {
    id: 1,
    url: "https://wx2.sinaimg.cn/mw2000/006VXJ2Agy1heedy0tgunj34mo334kjp.jpg",
  },
  {
    id: 2,
    url: "https://wx2.sinaimg.cn/mw2000/006VXJ2Aly1hegabj2abjj34mo334qvb.jpg",
  },
  {
    id: 3,
    url: "https://wx2.sinaimg.cn/mw2000/006VXJ2Agy1heegbyg2dfj34mo336qv8.jpg",
  },
  {
    id:4,
    url: "https://wx2.sinaimg.cn/mw2000/006VXJ2Agy1hec1w1n53dj33uw2klnpf.jpg"
  }

];

const imgUrlTwo=[
  {
    id:1,
    url: "https://wx3.sinaimg.cn/mw2000/006VXJ2Agy1heedbjspdfj3334224e83.jpg",
  },
  {
    id:2,
    url: "https://wx3.sinaimg.cn/mw2000/006VXJ2Agy1heecaxdjcwj3334223b2b.jpg",
  },
  {
    id:3,
    url: "https://wx1.sinaimg.cn/mw2000/006VXJ2Agy1hed9t9rwsoj3334224npe.jpg",
  },
  {
    id:4,
    url: "https://wx4.sinaimg.cn/mw2000/006VXJ2Agy1hed9pfawtfj348s2tvkjo.jpg",
  }
]

const imgUrlBig = [
  {
    id: 1,
    url: "https://wx2.sinaimg.cn/mw2000/006VXJ2Agy1heegcrm47qj335r23u1l4.jpg",
  },
  {
    id: 2,
    url: "https://wx4.sinaimg.cn/mw2000/006VXJ2Agy1heedtw14ytj33uw2klu12.jpg",
  }

];
</script>

<template>
  <div class="recommend-container">
    <div class="article">
      <el-carousel height="500px">
        <el-carousel-item v-for="item in imgUrl" :key="item.id">
          <el-image :src="item.url" fit="fit" alt="" />
        </el-carousel-item>
      </el-carousel>
      <el-carousel height="500px">
        <el-carousel-item v-for="item in imgUrlTwo" :key="item.id">
          <el-image :src="item.url" alt="" />
        </el-carousel-item>
      </el-carousel>
    </div>
<!--    大照片-->
    <div class="carousel">
      <el-carousel height="500px">
        <el-carousel-item v-for="item in imgUrlBig" :key="item.id">
          <el-image :src="item.url" alt="" />
        </el-carousel-item>
      </el-carousel>
    </div>
    <div class="introduction">奔赴这一场流萤平台的介绍</div>
  </div>
</template>

<style lang="less" scoped>
.recommend-container {
  width: 100%;
  height: 100%;
  .article {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    .el-carousel {
      width: 48%;
      height: 300px;
      .el-carousel__item {
        .el-image {
          width: 100%;
          height: 350px;
          border-radius: 10px;
        }
      }
    }
  }
  .el-carousel {
    .el-carousel__item {
      .el-image {
        width: 100%;
        height: 650px;
      }
    }
  }
  .introduction {
    margin-top: 20px;
    height: 300px;
    line-height: 300px;
    text-align: center;
    border: 1px solid #000;
    border-radius: 10px;
  }
}
</style>
